<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>莆田医学院用户登录</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="青山门诊挂号系统">
    <meta name="author" content="莆田行者智能科技有限公司">

    <link th:href="@{/bootstrap/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/dt-login.css}" rel="stylesheet">
<!--    <link rel="shortcut icon" href="http://www.hospitalstar.com/assets/ico/favicon.png">-->
</head>
<body onload="checkUsername()">
<div class="login-bg" style="height: 830px; width: 1980px;">
<!--    <div class="logo"><span></span><img src="img/login_imgs/pic_logo.png"></div>-->
    <div class="login-page">
        <div class="title">登录</div>
        <p class="text-danger text-center" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        <form class="form-horizontal" role="form"  th:action="@{/login}" th:method="post">
            <div class="form-group"><label for="userName" class="control-label sr-only">userName</label>
                <div class="col-sm-12">
                    <div class="input-group"><input type="text" class="form-control" id="userName" name="username"
                                                    placeholder="用户名"> <span class="input-group-addon"><img
                            th:src="@{/img/login_imgs/ic_user.png}"></span></div>
                </div>
            </div>
            <div class="form-group"><label for="password" class="control-label sr-only">Password</label>
                <div class="col-sm-12">
                    <div class="input-group"><input type="password" class="form-control" id="password" name="password"
                                                    placeholder="密码"> <span class="input-group-addon"><img
                            th:src="@{/img/login_imgs/ic_password.png}"></span></div>
                </div>
            </div>
<!--            <div class="form-group"><label for="password" class="control-label sr-only">Password</label>-->
<!--                <div class="col-sm-12">-->
<!--                    <div class="input-group col-sm-12"><input type="text" maxlength="4" class="form-control"-->
<!--                                                              style="width:calc(100% - 120px)"-->
<!--                                                              autocomplete="new-password" id="code" name="code"-->
<!--                                                              placeholder="验证码">-->
<!--                        <canvas id="canvas" class="text-right" style="margin-left:20px" width="100" height="40"-->
<!--                                onclick="changeCode()"></canvas>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <div class="col-sm-12">
                    <div><img class="checked" id="nocheck" th:src="@{/img/login_imgs/btn_nocheck.png}">
                     <img class="checked hide" th:src="@{/img/login_imgs/btn_check.png}">
                    </div>
                    <div>&nbsp;记住我</div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-12"><input type="submit" id="btnSubmit" class="login-btn" value="登录"></div>
            </div>
<!--            <a href="http://www.hospitalstar.com/login/forget" style="text-decoration:none">-->
<!--                <div class="forget">忘记密码?</div>-->
<!--            </a>-->
            <a href="register.html" style="text-decoration:none">
                <div class="forget"><a th:href="@{/register}">注册</a></div>
            </a>
        </form>
    </div>
    <footer class="footer">© 2021-11  信工研究院研发部版权所有</footer>
</div>
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="loginModalLabel">提示</h4></div>
            <div class="modal-body"></div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>